<%@ page language="java" import="java.util.*,com.king.cms.db.*,com.king.cms.common.*" pageEncoding="utf-8"%>
<%@ include file="/hotel/include/css.jsp"%>
 <% 
   List dataList = (List)request.getAttribute("dataList");
   String pageStr = (String)request.getAttribute("pageStr");
   QueryPage query = (QueryPage)request.getAttribute("query");
   int pow=( PowerParameter.del | PowerParameter.first| PowerParameter.amend);

 %> 
<html>
<head>
<title> </title>

<script language="javascript">
function ki_del(){
			    var objs = document.getElementsByName('traceId');
			    var checkIds = 0; 
		         if(objs.length>0){
		            for(var i=0;i<objs.length;i++){
		                 if(objs[i].checked)
		                   checkIds++;
		            }        
		         }
		         if(checkIds == 0)
		           alert('请选择要删除的记录');
		           else
		           if(confirm("确认删除所选修改记录？"))
				form1.submit();
			}
			
function ki_amend(){
			 
		         var objs =   document.getElementsByName('meetingId');
		         var objss =   document.getElementsByName('traceId');
		         var checkIds = 0;
		         var id = '';
		         if(objss.length>0){
		            for(var i=0;i<objss.length;i++){
		                 if(objss[i].checked)
		                   checkIds++;
		            }        
		         }
		         if(checkIds >1){
		            alert('请选择一条记录进行修改');
		            return;
		         }
		         if(checkIds == 0){
		            alert('请选择	要修改的记录');
		            return;
		         }
		         if(checkIds == 1){
		           for(var i=0;i<objss.length;i++){
		                 if(objss[i].checked)
		                   id = objs[i].value;
		            }   
		         } 
		        
		         var type= id.substring(id.indexOf('#')+1);
		         var meetingId = id.substring(0,id.indexOf('#')); 
                 window.open('<%=basePath%>pubinfo.do?action=view&meetingId='+meetingId+'&type='+type,'_self');
				 
			}		
</script>
</head>

<body background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
 <form name="form1" method="post" action="<%=path %>/trace.do?action=delete&type=modify">
	<center>	
	<table border="0" cellpadding="0" cellspacing="0" width="100%" height="2">
    <tr>
      <td width="9" height="1">
      </td>
      <td  height="1" background="">
      <p align="center"><b>修改记录追踪</b></td>
      <td width="9" height="1">
      </td>
    </tr>
    </table>

	<table border="0" cellpadding="0" cellspacing="0" width="70%" height="1">
		<tr>
		  <td height="3">
		  </td>
		</tr>
	</table>       
	<table height="48" border="0" cellpadding="2" cellspacing="1" class="bg_table" style="width:90%" bordercolor="#111111">
	   <tr class="top_td"> 
    <td width="5%">序号</td>
    <td width="5%">操作</td>
    <td width="">会议主题</td> 
    <td width="">修改人</td>
    <td width="">修改时间</td>
  
  </tr>
 
 <%if(null !=dataList&&dataList.size()>0){
        for(int i=0;i<dataList.size();i++){
                 Map m = (Map)dataList.get(i);
    %>
  <tr <%if(i%2==1){%> class="td2" onMouseOver="this.className='td5'" onMouseOut="this.className='td2'"<%} else {%>class="td3" onMouseOver="this.className='td5'" onMouseOut="this.className='td3'" <%}%> >
    <td><%=(query.getCurrentPageNo()-1)*10+(i+1) %></td>
    <td><input type="hidden"   name="meetingId" value="<%=m.get("MID")+"#"+m.get("MEETING_PUBLISH_TYPE")%>">
    <input type="checkbox" name="traceId" value="<%=m.get("ID")%>"></td>
    <td><%=StringUtil.NULL2Blank(m.get("MEETING_NAME")+"") %></td> 
    <td><%=StringUtil.NULL2Blank(m.get("USER_NAME")+"") %></td>
    <td><%=StringUtil.dateTimeSubStr(m.get("LOG_TIME")+"") %></td>
 
  </tr>
    <%}}else{ %>
    <tr class="td2"> 
		<td colspan="10" align="center"><font color="red">没有修改记录</font></td>
	  </tr>
    <%} %>
 </form>
	   <tr class="top_td"> 
		<td colspan="10"><%=pageStr %></td>
	  </tr>
     </table>
  </center>


</body>
</html>
<%@ include file="/hotel/pow.jsp"%>
